home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / C⁄C++ OS8 / Temperature / DDocData.h < prev    next >
Encoding:
Text File  |  1998-09-06  |  576 b   |  34 lines  |  [TEXT/CWIE]

  1. // DDocData -- data class for Temperature
  2.  
  3. #pragma once
  4.  
  5. #include "AMSignaler.h"
  6.  
  7.  
  8. const long    idCentigrade        = 'Cene';
  9. const long    idFahrenheit        = 'Faht';
  10.  
  11. class AMEngine;
  12.  
  13. //----------
  14. class DDocData : public AMSignaler {
  15. public:
  16.                 DDocData ();
  17.     virtual        ~DDocData ();
  18.  
  19. public:
  20.     void        ReadFromFile    (AMEngine*        engine);
  21.     void        WriteToFile        (AMEngine*        engine);
  22.  
  23. public:
  24.     SInt32        GetCentigrade () const;
  25.     void        SetCentigrade    (SInt32        inValue);
  26.  
  27.     SInt32        GetFahrenheit () const;
  28.     void        SetFahrenheit    (SInt32        inValue);
  29.  
  30. protected:
  31.     SInt32        mCentigrade;
  32.     SInt32        mFahrenheit;
  33. };
  34.